<?php (!defined('IN_SYSTEM') || !defined('ADMIN_PRE')) && exit('Access Denied!');?>
{admintemplate header}
<div class="box">
	<div class="heading">
	<h1>商品管理</h1>
	<div class="buttons">
	<a href="{url admin.php?m=product}"  class="fr">商品列表</a>
	<a href="{url admin.php?m=product&f=add}" class="fr current">添加商品</a>
	</div>
	</div>
	<div class="main">
	
	<form name="save" method="post" action="{url admin.php?m=product&f=save}" onsubmit="return check_form(this)">
	<input type="hidden" name="savetype" value="<?php echo $page['savetype']?>" />
	<input type="hidden" name="id" value="{$data['id']}" />
		<table class="sub">
			<tr>
				<td width="80">商品名称：</td>
				<td><input type="text" name="title" id="title" class="input" size="70" value="{$data['title']}" /> <span></span></td>
			</tr>
			<tr>
				<td >商品价格：</td>
				<td><input type="text" name="price" class="input" size="22" value="{$data['price']}" /> 原价：<input type="text" name="mprice" class="input" size="22" value="{$data['mprice']}" /></td>
			</tr>
			<tr>
				<td>商品数量：</td>
				<td><input type="text" name="stock" id="stock" class="input" size="22" value="{$data['stock']}"  /> 状态：<input type="radio" name="status" class="radio" value="0" {if !$page['ishide']}checked="checked"{/if}/>上架
				<input type="radio" name="status" class="radio" value="1" {if $page['ishide']}checked="checked"{/if}/>下架</td>
			</tr>
			<tr>
				<td>URL链接名：</td>
				<td><input type="text" name="urlname" id="urlname" class="input" size="22" value="<?php echo $page['urlname']?>"  onblur="check_urlname()"/> </td>
			</tr>
			<tr>
				<td>URL链接名：</td>
				<td><input type="text" name="orderid" class="input" size="8" value="<?php echo $page['orderid']?>" /> <span>按从小到大排列</span></td>
			</tr>
			<tr>
				<td>是否可用：</td>
				<td>
				<input type="radio" name="status" class="radio" value="0" {if !$page['ishide']}checked="checked"{/if}/>是
				<input type="radio" name="status" class="radio" value="1" {if $page['ishide']}checked="checked"{/if}/>否
				</td>
			</tr>
			<tr>
				<td>关键字：</td>
				<td valign="top">
				<input type="checkbox" name="show_keywords" value="1" onclick="$('#keywords').toggle()" id="show_keywords"  class="checkbox" /><label for="show_keywords">编辑Meta keywords标签内容。</label></td>
			</tr>
			<tbody id="keywords" style="display:none;">
			<tr>
				<td></td><td><textarea name="keywords" rows="5" cols="50"><?php echo $page['keywords']?></textarea></td>
			</tr>
			</tbody>
			<tr>
				<td>页面描述：</td>
				<td valign="top">
				<input type="checkbox" name="show_description" value="1" onclick="$('#description').toggle()" id="show_description"  class="checkbox" /><label for="show_description">编辑Meta Description标签内容。</label></td>
			</tr>
			<tbody id="description" style="display:none;">
			<tr>
				<td></td><td><textarea name="description" rows="5" cols="50"><?php echo $page['description']?></textarea></td>
			</tr>
			</tbody>
			<tr>
				<td>附件上传：</td>
				<td><input type="checkbox" name="show_upload" value="1" onclick="$('#upload').toggle()" id="show_upload"  class="checkbox" /><label for="show_upload">上传附件</label></td>
			</tr>
			<tbody id="upload" style="display:none;">
			<tr>
				<td></td>
				<td><iframe src="admin.php?m=upload" width="100%" height="160" id="upload" name="upload" frameborder="0" scrolling="auto" ></iframe></td>
			</tr>
			</tbody>
			<tr>
				<td valign="top">页面内容：</td><td><?php echo editor('content','content',$page['content'],'default','100%','300px',true)?></td>
			</tr>
			<tr>
			<td></td><td>
				<input type="submit" class="button" value="保存页面" />
				<input type="button" class="button" value="返回上一页" onclick="history.back()" />
			</td>
			</tr>
		</table>
	</form>
	
	</div>
</div>	
{admintemplate footer}